package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.UserCoupon;
import com.nbsaas.boot.marketing.api.domain.response.UserCouponResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 用户优惠券-实体对象转化成响应对象
*/

public class UserCouponResponseConvert  implements Converter<UserCouponResponse,UserCoupon> {

    @Override
    public UserCouponResponse convert(UserCoupon source) {
        UserCouponResponse  result = new  UserCouponResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

